home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_200
/
271_02
/
getpos.doc
< prev
next >
Wrap
Text File
|
1987-08-18
|
814b
|
38 lines
NAME
getpos -- get current cursor position
SYNOPSIS
position = getpos(page);
unsigned int position; returned position
int page; video page to check
DESCRIPTION
Returns the row and column of the cursor on the specified
video page. Row is in upper 8 bits of returned integer
and column in lower 8 bits. Values are in binary.
EXAMPLE
unsigned int position;
short row, column;
position = getpos(0); /* on video page 0 */
row = (position >> 8) & 0xff;
column = position & 0xff;
This function is found in SMTCx.LIB for the Turbo-C Compiler